package controller;

import org.springframework.stereotype.Component;

@Component
public class Result {
    private boolean ok;
    private String src;
    private String href;
    private String info;

    public String getSrc() {
        if (isOk()) {
            return "img/welcome.gif";
        } else {
            return "img/sorry.jpeg";
        }
    }

    public boolean isOk() {
        return ok;
    }

    public void setOk(boolean ok) {
        this.ok = ok;
    }

    public void setSrc(String src) {
        this.src = src;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

}
